Documentation for class symbol

Inherits from 	basic_object 

Properties declared in symbol 

Class Methods declared in symbol 

Methods declared in symbol 
	any 
		global_value 
		is_bound 
		is_globally_bound 
		is_greater_than(symbol) 
		is_greater_than_or_equal(symbol) 
		is_less_than(symbol) 
		is_less_than_or_equal(symbol) 
		is_locally_bound 
		the_class 
		value 

Class 
#begin_class
symbol 
The class symbol is a sub-class of the class basic_object. 
The syntax of a symbol is:

#symbol

i.e. a hash mark (#) followed by a number of characters. If the symbol should include white space surround the characters by '.

#'a symbol'

Symbols can be bound to values. If you type 
a := "hello"
the symbol #a is bound to the value "hello".

If you type it in the Console window, #a will be globally bound. If you type it in a method, #a will be locally bound. 
#end_class

Properties 

Methods 

#begin_method
global_value 
Returns the value that is globally bound to the symbol. If the symbol is not globally bound the method returns nil.
Note: When you assign a variable in the Console window, the symbol gets globally bound.
Ex:
a := "hello"
#a:global_value
returns "hello"
#end_method

#begin_method
is_bound 
Returns true if the symbol is bound to a value. Otherwise the method returns false.
Ex:
a := "hello"
#a:is_bound
returns true
#end_method

#begin_method
is_globally_bound 
Returns true if the symbol is globally bound to a value. Otherwise the method returns false.
Ex:
a := "hello"
#a:is_globally_bound
returns true
#end_method

#begin_method
is_greater_than(symbol) 
Returns true if the symbol is greater than symbol. Otherwise the method returns false.
Ex:
#abc:is_greater_than(#bcd)
returns false
#bcd:is_greater_than(#bcd)
returns false
#cde:is_greater_than(#bcd)
returns true
Note: These are equivalent to #abc > #bcd, #bcd > #bcd and #cde > #bcd.
#end_method

#begin_method
is_greater_than_or_equal(symbol) 
Returns true if the symbol is greater than or equal to symbol. Otherwise the method returns false.
Ex:
#abc:is_greater_than_or_equal(#bcd)
returns false
#bcd:is_greater_than_or_equal(#bcd)
returns true
#cde:is_greater_than_or_equal(#bcd)
returns true
Note: These are equivalent to #abc >= #bcd, #bcd >= #bcd and #cde >= #bcd.
#end_method

#begin_method
is_less_than(symbol) 
Returns true if the symbol is less than symbol. Otherwise the method returns false.
Ex:
#abc:is_less_than(#bcd)
returns true
#bcd:is_less_than(#bcd)
returns false
#cde:is_less_than(#bcd)
returns true
Note: These are equivalent to #abc < #bcd, #bcd < #bcd and #cde < #bcd.
#end_method

#begin_method
is_less_than_or_equal(symbol) 
Returns true if the symbol is less than or equal to symbol. Otherwise the method returns false.
Ex:
#abc:is_less_than_or_equal(#bcd)
returns true
#bcd:is_less_than_or_equal(#bcd)
returns true
#cde:is_less_than_or_equal(#bcd)
returns false
Note: These are equivalent to #abc <= #bcd, #bcd <= #bcd and #cde <= #bcd.
#end_method

#begin_method
is_locally_bound 
Returns true if the symbol is locally bound to a value. Otherwise the method returns false.
Ex:
a := "hello"
#a:is_locally_bound
returns true
#end_method

#begin_method
the_class 
Returns the class if the symbol is bound to a classname. If the symbol is not bound to a classname the method returns nil.
Ex:
#button:the_class
returns {button}
#end_method

#begin_method
value 
Returns the value that is bound to the symbol. If the symbol is not bound the method returns nil.
Ex:
a := "hello"
#a:value
returns "hello"
#end_method

Class Methods